package com.whminwei.edu.api.base.dto.fspn;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wangy
 * @since 2024/5/13
 */
@Data
public class TrainModeFspn {

    @JsonValue
    private List<TrainModeBo> trainModeBos;

    public TrainModeFspn() {
    }

    @JsonCreator
    public TrainModeFspn(List<TrainModeBo> trainModeBos) {
        this.trainModeBos = trainModeBos;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class TrainModeBo {

        private String value;

        private String display;

        private int schLength;

        private String desc;

        private String alias;

    }
}
